package com.dms.modules.product.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Map;

@Data
@ApiModel(value = "ProductSkuDTO", description = "商品SKU DTO")
public class ProductSkuDTO {
    
    @ApiModelProperty("SKU ID")
    private Long id;
    
    @ApiModelProperty("商品ID")
    private Long productId;
    
    @NotBlank(message = "SKU编码不能为空")
    @ApiModelProperty("SKU编码")
    private String skuCode;
    
    @ApiModelProperty("SKU名称")
    private String skuName;
    
    @NotNull(message = "规格值不能为空")
    @ApiModelProperty("规格值")
    private Map<String, String> specValues;
    
    @ApiModelProperty("SKU图片")
    private String image;
    
    @NotNull(message = "售价不能为空")
    @ApiModelProperty("售价")
    private BigDecimal price;
    
    @NotNull(message = "库存不能为空")
    @ApiModelProperty("库存")
    private Integer stock;
    
    @ApiModelProperty("状态：0-禁用 1-启用")
    private Integer status;
} 